package com.ruoyi.recycle.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.recycle.domain.HousekeepingCommodity;
import com.ruoyi.recycle.domain.HousekeepingOrder;
import com.ruoyi.recycle.dto.HousekeepingOrderQueryDTO;

import java.math.BigDecimal;
import java.util.List;

/**
 * 家政订单Service接口
 *
 * @author ruoyi
 * @date 2022-05-22
 */
public interface IHousekeepingOrderService extends IService<HousekeepingOrder> {
    /**
     * 查询家政订单
     *
     * @param HKOrderNo 家政订单主键
     * @return 家政订单
     */
    public HousekeepingOrder selectHousekeepingOrderById(String HKOrderNo);

    /**
     * 查询家政订单列表
     *
     * @param housekeepingOrder 家政订单
     * @return 家政订单集合
     */
    public List<HousekeepingOrder> selectHousekeepingOrderList(HousekeepingOrder housekeepingOrder);

    /**
     * 新增家政订单
     *
     * @param housekeepingOrder 家政订单
     * @return 结果
     */
    public int insertHousekeepingOrder(HousekeepingOrder housekeepingOrder);

    /**
     * 修改家政订单
     *
     * @param housekeepingOrder 家政订单
     * @return 结果
     */
    public int updateHousekeepingOrder(HousekeepingOrder housekeepingOrder);

    /**
     * 批量删除家政订单
     *
     * @param ids 需要删除的家政订单主键集合
     * @return 结果
     */
    public int deleteHousekeepingOrderByIds(String[] HKOrderNos);

    /**
     * 删除家政订单信息
     *
     * @param id 家政订单主键
     * @return 结果
     */
    public int deleteHousekeepingOrderById(Long id);

    List<HousekeepingCommodity> selectHousekeepingOrderDetailById(String HKOrderNo);

    AjaxResult miniClientGetClientHousekeepingOrder(HousekeepingOrderQueryDTO queryDTO);


    BigDecimal sumFinishedOrder(LambdaQueryWrapper<HousekeepingOrder> queryWrapper);


}
